package com.thm.tfast.modules.sys.model.dto.role;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author THM
 * @date 2022/10/28
 * @desc 用户修改dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RoleUpdateDto {

    @ApiModelProperty(value = "角色ID", required = true)
    @NotNull(message = "角色ID不能为空")
    private Long id;

    @ApiModelProperty(value = "角色名")
    @Size(max = 12, message = "角色名不能超过12位")
    private String name;

    @ApiModelProperty(value = "描述")
    @Size(max = 36, message = "描述不能超过36位")
    private String description;
}
